﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace EQualApplication.Controls
{
    /// <summary>
    /// Interaction logic for DataGridDecorator.xaml
    /// </summary>
    public partial class DataGridDecorator : UserControl
    {
        public DataGridDecorator(UIElement content,string header):this()
        {
            Header = header;
        }

        public DataGridDecorator()
        {
            InitializeComponent();
        }

        string _header;
         
        public string Header
        {
            get { return _header; }
            set { _header = value;
            this.label1.Content = value;
            } 
        }

        public void AddContent(UIElement content)
        {
            grid1.Children.Add(content);
        }
    }
}
